package com.css.dzj.zfjg.modules.supervisioncompinfo.service.impl;

import com.css.dzj.zfjg.modules.supervisioncompinfo.entity.JgTsjbHandleInfoEntity;
import com.css.dzj.zfjg.modules.supervisioncompinfo.entity.JgTsjbMediateInfoEntity;
import com.css.dzj.zfjg.modules.supervisioncompinfo.mapper.JgTsjbHandleInfoMapper;
import com.css.dzj.zfjg.modules.supervisioncompinfo.mapper.JgTsjbMediateInfoMapper;
import com.css.dzj.zfjg.modules.supervisioncompinfo.service.JgDfComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;

@Service
public class JgDfComplaintServiceImpl implements JgDfComplaintService {
    @Autowired
    JgTsjbHandleInfoMapper jgTsjbHandleInfoMapper;
    @Autowired
    JgTsjbMediateInfoMapper jgTsjbMediateInfoMapper;
    /**
     * 添加监管投诉答复信息
     * @param jgTsjbHandleInfoEntity
     */
    @Transactional
    @Override
    public void add(JgTsjbHandleInfoEntity jgTsjbHandleInfoEntity) {
        try {
            jgTsjbHandleInfoMapper.save(jgTsjbHandleInfoEntity);
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
    /**
     * 添加监管投诉调解信息
     * @param jgTsjbMediateInfoEntity
     */
    @Transactional
    @Override
    public void addmediate(JgTsjbMediateInfoEntity jgTsjbMediateInfoEntity) {
        try {
            jgTsjbMediateInfoMapper.save(jgTsjbMediateInfoEntity);
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
